package grg.learn.compose.wanandroid.data.model

//"offset": 20,
//    "over": false,
//    "pageCount": 554,
//    "size": 20,
//    "total": 11068
data class IndexArticlePage(
    var offset: Int = 0,
    var over: Boolean = true,
    var pageCount: Int = 0,
    var size: Int = 0,
    var total: Int = 0,
    var datas: List<IndexArticle>
) {
    companion object {

        fun empty(): IndexArticlePage {
            return IndexArticlePage(datas = emptyList())
        }

    }
}

data class IndexArticle(
    val apkLink: String,
    val audit: Int,
    val author: String,
    val canEdit: Boolean,
    val chapterId: Int,
    val chapterName: String,
    val collect: Boolean,
    val courseId: Int,
    val desc: String,
    val descMd: String,
    val envelopePic: String,
    val fresh: Boolean,
    val host: String,
    val id: Int,
    val link: String,
    val niceDate: String,
    val niceShareDate: String,
    val origin: String,
    val prefix: String,
    val projectLink: String,
    val publishTime: Long,
    val realSuperChapterId: Int,
    val selfVisible: Int,
    val shareDate: Long,
    val shareUser: String,
    val superChapterId: Int,
    val superChapterName: String,
    val tags: List<Tag>,
    val title: String,
    val type: Int,
    val userId: Int,
    val visible: Int,
    val zan: Int
)

data class Tag(
    val name: String,
    val url: String
)